/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.invoice.model.dao;

import com.invoice.busines.dto.ArticuloDTO;
import com.invoice.busines.dto.CategoriaDTO;
import com.invoice.busines.dto.SubcategoriaDTO;
import com.invoice.exceptions.InvoiceException;
import com.invoice.model.entities.Categoria;
import com.invoice.model.entities.Subcategoria;
import java.util.List;

/**
 *
 * @author meliMeli
 */
public interface SubcategoriaDAO{
    
public Object add(Object object)throws InvoiceException;
public void update(Object object)throws InvoiceException;
public void delete(Object object)throws InvoiceException;
    
public Subcategoria convertDTOtoPojo(Object object);
public SubcategoriaDTO convertPojotoDTO(Object object);
public List<SubcategoriaDTO> findAll() throws InvoiceException;
public SubcategoriaDTO findByIdSubcategoria(String idSubcategoria) throws InvoiceException;
public List<SubcategoriaDTO> findSubcategByIdCategoria(Integer idCategoria) throws InvoiceException;
}
